package com.theo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 
 * </p>
 *
 * @author 方涛
 * @since 2021-02-02
 */
@Component
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="StockInfo对象", description="")
public class StockInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "库存编号")
    @TableId(value = "stock_id", type = IdType.AUTO)
    private Integer stockId;

    @ApiModelProperty(value = "商品编号")
    private Integer articleId;

    @ApiModelProperty(value = "商品名称")
    @TableField(exist = false)
    private String articleName;

    @ApiModelProperty(value = "医院编号")
    private Integer hospitalId;

    @ApiModelProperty(value = "医院名称")
    @TableField(exist = false)
    private String hospitalName;

    @ApiModelProperty(value = "库存数量")
    private Integer stockNum;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "是否下架")
    private Integer status;

    @ApiModelProperty(value = "录入时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}
